package com.jquest.data;

import org.newdawn.slick.SpriteSheet;
import org.newdawn.slick.GameContainer;
import com.jquest.input.InputHandler;

/**
 * Created by IntelliJ IDEA.
 * User: Johan
 * Date: 2009-dec-11
 * Time: 03:26:52
 * To change this template use File | Settings | File Templates.
 */
public class Player extends Character {
    InputHandler movement;

    public Player(float x, float y, SpriteSheet ss, int spriteCount, Map map) {
        super(x, y, ss, spriteCount);
        movement = new InputHandler(this, map);
        movement.enable();
    }

    public void update(GameContainer gc, int time) {
        super.update(time);
        movement.handle(gc.getInput());
    }

}
